/**
 * Project Name:ecsmts_web
 * File Name:LoginActionBean.java
 * Package Name:com.aliyun.sys.login
 * Date:2013-7-23下午4:37:00
 * Copyright (c) 2013, chenzhou1025@126.com All Rights Reserved.
 *
*/

package com.aliyun.sys.login;

import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.SessionScope;

import org.mybatis.jpetstore.web.actions.AbstractActionBean;

/**
 * ClassName:LoginActionBean <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2013-7-23 下午4:37:00 <br/>
 * @author   zhangfeng
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
@SessionScope
public class LoginActionBean extends AbstractActionBean{

    /**
     * serialVersionUID:.
     * @since JDK 1.6
     */
    private static final long serialVersionUID = 1L;
    
    private static final String LOGIN_SUCCESS = "/WEB-INF/jsp/main.jsp";
    private static final String LOGIN_FAIL = "/WEB-INF/jsp/index.jsp";
    
    private String username;
    private String password;
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    
    public Resolution loginIn() {
        
        return new ForwardResolution(LOGIN_SUCCESS);
    }
    

}

